package com.wgy.designmode.action.state.state;

import com.wgy.designmode.action.state.context.Computer;

public class CloseState implements State{
    @Override
    public void powerOn(Computer computer) {
        System.out.println("电脑开始开机");
    }

    @Override
    public void powerOff(Computer computer) {
        System.out.println("电脑已经关机");
    }

    @Override
    public void play(Computer computer) {
        System.out.println("电脑关机状态，无法播放");
    }

    @Override
    public String toString() {
        return "CloseState";
    }
}
